					<div class="btn-group pull-left">
					<?php echo form_open('admin/registered_user/index/', array('class'=>'horizontal-form'));?>
								<label class="control-label">Select User Type</label>
								<select name="search_by" id="user" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
									<?php if($this->uri->segment(4) == 2):?>
									<option value="1">All</option>
									<option selected="selected" value="2">Association Users</option>
									<option value="3">Users</option>
									<?php elseif($this->uri->segment(4) == 3):?>
									<option value="1">All</option>
									<option value="2">Association Users</option>
									<option selected="selected" value="3">Users</option>
									<?php else:?>
									<option selected="selected" value="1">All</option>
									<option value="2">Association Users</option>
									<option value="3">Users</option>
									<?php endif;?>
									</select>
						<?php echo form_close();?>				
							</div>
							
							<div class="page-toolbar">
						<div class="btn-group pull-right">
							<?php echo form_open('admin/registered_user/search_by')?>
								<select name="search_by" id="location" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
									<option value="">select</option>
									<?php foreach($user_fields as $user_k => $user_v):?>
									<?php if($user_k!=='created_date' && $user_k!=='status'):?>			
									<?php if($search_by == $user_k):?>			
										<option selected="selected" value="<?php echo $user_k;?>"><?php echo $user_v;?></option>
									<?php else:?>
										<option value="<?php echo $user_k;?>"><?php echo $user_v;?></option>
									<?php endif; endif; endforeach;?>
									</select><?php echo form_error('search_by');?>
								<input type="text" value="<?php echo $search_by_value; ?>" name="search" id="location_search" class="form-control" placeholder="search"/>
								<input type="submit" class="btn blue" value="Search"/>
						<?php echo form_close();?>				
						</div>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Movie Review Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/registered_user/create_registered_user';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
										<?php if($error == 1){
											echo "No Records Found<br>";
											echo anchor('admin/registered_user/index/', 'Back');
										}else{?>
								</div>
								</div>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
									<?php foreach($user_fields as $user_k => $user_v):?>
									<th>
										 <?php echo anchor('admin/registered_user/index/'.$query_id.'/'.$user_k.'/'.(($sort_order == 'asc' && $order_by == $user_k) ? 'desc' : 'asc'), $user_v);?>
									</th>
									<?php endforeach;?>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
								</tr>
								</thead>
								<tbody>
								<?php /* if($registerusers == ''){
									$registerusers = $all_registerusers;
								}elseif($registerusers == 1){
									$registerusers = $get_users;
								}else{
									$registerusers = $get_associationusers;
								} */?>
								<?php echo 'Total Records: '.$registerusers->total;?>
								<?php //echo '<pre>';print_r($registerusers);exit;?>
								<?php foreach($registerusers->info as $users):?>
								<tr>
									<td>
										 <?php echo $users->user_name;?>
									</td>
									<td>
										 <?php echo $users->email;?>
									</td>
									<td>
										 <?php echo $users->city;?>
									</td>
									<td>
										 <?php if($users->status == 1){?>
										 <i class="fa fa-check"></i>
										 <?php }else{ ?>
										 <i class="fa fa-times"></i>
										  <?php } ?>
									</td>
									<td>
										 <?php echo $users->created_date;?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/registered_user/edit_registered_user/'.$users->registereduser_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/registered_user/delete_registered_user/'.$users->registereduser_id.'/'.$users->status;?>">
										<?php if($users->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
								</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
			<?php }?>
	